package com.ruoyi.wetest.vo;

/**
 * @author Allen
 * @description TODO
 * @Date 2024/5/11 20:33
 */

import java.io.Serializable;

public class Triple<A, B, C> implements Serializable {
    private A first;
    private B second;
    private C third;

    public Triple(A first, B second, C third) {
        this.first = first;
        this.second = second;
        this.third = third;
    }

    /**
     * Returns string representation of the [Triple] including its [first], [second] and [third] values.
     */
    @Override
    public String toString() {
        return "(" + first + ", " + second + ", " + third + ")";
    }

    public A getFirst() {
        return first;
    }

    public B getSecond() {
        return second;
    }

    public C getThird() {
        return third;
    }

    public void setFirst(A first) {
        this.first = first;
    }

    public void setSecond(B second) {
        this.second = second;
    }

    public void setThird(C third) {
        this.third = third;
    }
}
